<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>编辑文章</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="icon" href="images/favicon.ico"
			type="image/vnd.microsoft.icon">

		<link href="<%=basePath%>css/dialog/dialog.css" rel="stylesheet">
		<link href="<%=basePath%>css/smoothness/jquery-ui.css" rel="stylesheet">
		<style type="text/css">
			body {
				font: 62.5% "Trebuchet MS", sans-serif;
				margin: 50px;
			}
			
			.demoHeaders {
				margin-top: 2em;
			}
			
			#dialog-link {
				padding: .4em 1em .4em 20px;
				text-decoration: none;
				position: relative;
			}
			
			#dialog-link span.ui-icon {
				margin: 0 5px 0 0;
				position: absolute;
				left: .2em;
				top: 50%;
				margin-top: -8px;
			}
			
			#icons {
				margin: 0;
				padding: 0;
			}
			
			#icons li {
				margin: 2px;
				position: relative;
				padding: 4px 0;
				cursor: pointer;
				float: left;
				list-style: none;
			}
			
			#icons span.ui-icon {
				float: left;
				margin: 0 4px;
			}
		</style>

		<script src="<%=basePath%>js/jquery-1.8.3.js" type="text/javascript"></script>
		<script language="Javascript" src="<%=basePath%>HtmlBox/htmlbox.full.js" type="text/javascript"></script>
	</head>

	<body>
		<form action="article/update.wkm" method="post" id="form0">
				<input id="form01" name="articleId" type="hidden" value="${articleId }" />
				<div>文章名称:<input id="form02" name="articleName" size="100" value="${articleName }"/></div>
				<div><textarea id="ha" name="articleContent">${articleContent }</textarea></div>
				<input name="sure" type="submit" value="保存" />
				<input name="cancel" type="reset" value="取消" />
				<div><c:out value="${messageForm0 }"></c:out></div>
		</form>
		<script language="Javascript" type="text/javascript">
		$("#ha").css("height","100%").css("width","100%").htmlbox({
		    toolbars:[
			    [
				// Cut, Copy, Paste
				"separator","cut","copy","paste",
				// Undo, Redo
				"separator","undo","redo",
				// Bold, Italic, Underline, Strikethrough, Sup, Sub
				"separator","bold","italic","underline","strike","sup","sub",
				// Left, Right, Center, Justify
				"separator","justify","left","center","right",
				// Ordered List, Unordered List, Indent, Outdent
				"separator","ol","ul","indent","outdent",
				// Hyperlink, Remove Hyperlink, Image
				"separator","link","unlink","image"
				
				],
				[// Show code
				"separator","code",
		        // Formats, Font size, Font family, Font color, Font, Background
		        "separator","formats","fontsize","fontfamily",
				"separator","fontcolor","highlight",
				],
				[
				//Strip tags
				"separator","removeformat","striptags","hr","paragraph",
				// Styles, Source code syntax buttons
				"separator","quote","styles","syntax"
				]
			],
			skin:"blue"
		});
		</script>
	</body>
</html>
